import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import { setupRouter } from "./router";
import "lib-flexible/flexible";
import "vant/lib/index.css";
import { useWxShare } from "@/hooks/useWxShare";
import {
  Button,
  Toast,
  Search,
  Icon,
  RadioGroup,
  Radio,
  Tab,
  Tabs,
  Overlay,
  Dialog,
  CountDown,
  Field,
  Image as VanImage,
  Lazyload,
  ImagePreview,
  NavBar,
  Swipe,
  SwipeItem,
  Cell,
  List,
  Sticky,
  Empty,
  Loading,
  Popover,
  Skeleton,
  SkeletonTitle,
  SkeletonImage,
  SkeletonAvatar,
  SkeletonParagraph,
  Picker,
  Popup,
  Checkbox,
CheckboxGroup,
  DropdownMenu, DropdownItem,
  DatePicker,
  Notify
} from "vant";
const app = createApp(App);
app.use(createPinia());
app
  .use(Button)
  .use(Search)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(Toast)
  .use(Icon)
  .use(DatePicker)
  .use(Overlay)
  .use(Dialog)
  .use(CountDown)
  .use(Field)
  .use(VanImage)
  .use(Lazyload)
  .use(ImagePreview)
  .use(Tab)
  .use(Tabs)
  .use(RadioGroup)
  .use(Radio)
  .use(NavBar)
  .use(Swipe)
  .use(Skeleton)
  .use(SkeletonTitle)
  .use(SkeletonImage)
  .use(SkeletonAvatar)
  .use(SkeletonParagraph)
  .use(DropdownMenu)
  .use(DropdownItem)
  .use(SwipeItem).use(Cell).use(List).use(Sticky).use(Empty).use(Loading).use(Popover).use(Picker).use(Popup);


setupRouter(app);

app.mount("#app");
